[20251202] PGM / LV2 / 아날로그 시계 / 한종욱 #1566
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🧷 문제 링크
https://school.programmers.co.kr/learn/courses/30/lessons/250135
🧭 풀이 시간
120분
👀 체감 난이도
✏️ 문제 설명
초침과 분침/시침이 겹치는 횟수를 구하라
🔍 풀이 방법
분침과 초침이 겹치는 횟수 + 시침과 초침이 겹치는 횟수 - (분침+시침)과 초침이 겹치는 횟수를 구했다.
근데 그 과정이 너무 어려웠다.
마지막에 시작부터 겹치는 것들을 계산해서 빼주어야 한다.
⏳ 회고
처음부터 정직하게 풀 껄. 괜히 1초마다 분침, 시침을 옮겨서 풀려고 했다.